pkgname=osk-sdl
pkgver=0.49
pkgrel=0
pkgdesc="Onscreen keyboard for unlocking LUKS devices"
url="https://github.com/postmarketOS/osk-sdl"
arch="all"
license="GPL3"
depends="sdl2 sdl2_ttf cryptsetup-libs mesa-gl directfb"
makedepends="linux-headers sdl2-dev sdl2_ttf-dev cryptsetup-dev"
subpackages=""

source="${pkgname}-${pkgver}-${pkgrel}.tar.gz::https://github.com/postmarketOS/osk-sdl/archive/${pkgver}.tar.gz"

options="!strip"

build() {
    make
}

package() {
    install -D -m755 "${srcdir}/${pkgname}-${pkgver}"/osk-sdl \
        "$pkgdir"/usr/bin/osk-sdl
    install -D -m755 "${srcdir}/${pkgname}-${pkgver}"/osk.conf \
        "$pkgdir"/etc/osk.conf
}
sha512sums="2e738ee1da0871d11eb7d788ae128b1744969c2cae50d01ec19f9a026d0b6adbc667e003f076bc3fcff29800a2309f6a3d556801f6c9db386b4b2233450c0d6c  osk-sdl-0.49-0.tar.gz"
